package org.KeyCrafter.cmd;

import org.KeyCrafter.server.session.ClientSession;

@CmdSet
public interface SetCommand {
    @CmdInfo(name = "sadd", arity = -3, sflags = "wm", firstKey = 1, lastKey = 1, keyStep = 1)
    void saddCommand(ClientSession c);
    @CmdInfo(name = "sinter", arity = -2, sflags = "rS", firstKey = 1, lastKey = -1, keyStep = 1)
    void sinterCommand(ClientSession c);
    @CmdInfo(name = "smembers", arity = 2, sflags = "rS", firstKey = 1, lastKey = 1, keyStep = 1)
    void smembersCommand(ClientSession c); // 获取多个集合交集，返回结果
    @CmdInfo(name = "sinterstore", arity = -3, sflags = "wm", firstKey = 1, lastKey = -1, keyStep = 1)
    void sinterstoreCommand(ClientSession c);// 获取多个集合交集，放到新集合

}
